From: Richard M. Stallman Date: Tue, 30 Sep 2003 12:38:38 +0000 (+0000) Subject: (set_tty_color_mode): Calculate current_mode_spec regardless of value of VAL. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~25373 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=35eccac2ef0fb392c7971f9a9b38d17aa6bc04e0;p=emacs.git (set_tty_color_mode): Calculate current_mode_spec regardless of value of VAL. --- diff --git a/src/term.c b/src/term.c index 8e4eb21c362..5c25c7419dc 100644 --- a/src/term.c +++ b/src/term.c @@ -2120,13 +2120,15 @@ set_tty_color_mode (f, val) color_mode_spec = Qnil; else color_mode_spec = Fassq (val, XSYMBOL (tty_color_mode_alist)->value); - current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist); if (CONSP (color_mode_spec)) color_mode = XCDR (color_mode_spec); else color_mode = Qnil; } + + current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist); + if (CONSP (current_mode_spec)) current_mode = XCDR (current_mode_spec); else